package com.BMS.DAO;

import java.util.List;

import com.BMS.entity.Book;
import com.BMS.entity.Violation;

/**
 * 违规记录实体类DAO层接口抽象类
 * @author lenovo
 *
 */
public interface ViolationDao {

	// add
	public void addViolation(Violation violation);
	// delete
	public void deleteViolationById(int violation_id);
	// find
	public Violation findViolationById(int violation_id);
	
	public List<Violation> findViolationsByReaderId(String reader_id);
	
	// 分页查询图书，并按指定字段排序
	public List<Violation> findAllViolations(int offset, int length, String orderBy);

	// 显示分页总页数
	public long getPageCount();
	
	// update
	public void updateViolation(Violation violation);
	
	
}
